/**
   cuda.cuh - Created by Timothy Morey on 2/2/2012.

   This file contains miscelaneous cuda utilities.
 */

#include <stdio.h>

#define CUDA_CALL(x)							\
  {									\
    cudaError_t err = x;						\
    if(cudaSuccess != err)						\
      printf("CUDA Error on call \"%s\": %s\n\tLine: %d, File: %s\n",	\
	     #x, cudaGetErrorString(err), __LINE__, __FILE__);		\
  }
